//
//  ViewController.m
//  RQScan
//
//  Created by 蜂巢网络科技 on 2017/5/17.
//  Copyright © 2017年 fengchao. All rights reserved.
//

#import "ViewController.h"
#import "Global.h"
#import "LBXScanViewController.h"
#import "StyleDIY.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [Global sharedManager].libraryType = SLT_ZXing;
    
    // Do any additional setup after loading the view, typically from a nib.
}

#pragma mark ---自定义界面
- (void)openScanVCWithStyle:(LBXScanViewStyle*)style
{
    LBXScanViewController *vc = [LBXScanViewController new];
    vc.style = style;
    vc.isOpenInterestRect = YES;
    [self.navigationController pushViewController:vc animated:YES];
}

- (IBAction)scan:(UIBarButtonItem *)sender {
    
    // 非正方形，可以用在扫码条形码界面
    [self openScanVCWithStyle:[StyleDIY notSquare]];

}

@end
